<template>
	<view class="home"></view>
</template>

<script setup>
import { onLoad } from "@dcloudio/uni-app";
import { useUserStore } from "@/store/user";

const userStore = useUserStore();

onLoad(() => {
	if (!userStore.isLogin) {
		uni.reLaunch({
			url: "/uni_modules/uni-id-pages/pages/login/login-withpwd"
		});
	}
});
</script>

<style lang="scss" scoped></style>
